package org.zerg.controller.web;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.zerg.dto.Report;
import org.zerg.service.ReportService;

@Controller
@RequestMapping("/report")
public class ReportWebController {

	@Autowired
	private ReportService reportService;
	
	@ResponseBody
	@RequestMapping("/cate")
	public Report reportByCate(){
		Report report = reportService.reportByCate();
		return report;
	}
	
	@ResponseBody
	@RequestMapping("/day")
	public Report reportByDay(){
		Report report = reportService.reportByDay();
		return report;
	}
	
}
